package com.hare.harelearn.DataStructure.structure.循环链表存储结构;

public class Node {

    private String name;

    private String info;

    private Node next;

    public Node(Node next) {
        this.next = next;
    }

    public Node(String name, String info) {
        this.name = name;
        this.info = info;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
